package top.majuan.lianxi.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_cpu")
public class TbCpu implements Serializable {
    @Serial
    public static final long serialVersionUID = 1L;
//  数据库的主键primary key auto_increment
    @TableId(type = IdType.AUTO)
    public Integer id;
    public String cpu;
    public String manufacturer;
    public String info;
    public Integer cores;
    public Integer threads;
    public String frequency;
    public String maxFrequency;
//  如果有默认值，不想填写就用下面的注解标注
//  insertStrategy是添加策略 updateStrategy是修改策略
//  NERVER表示不要插入或更新
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    public Date releaseDate;

}
